﻿//************************************************************ 
// Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich
// To learn more about Mytrip.Mvc.Entyty visit 
// http://starterkitmytripmvc.codeplex.com/
// mytripmvc@gmail.com
// license: Microsoft Public License (Ms-PL) 
// ***********************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    /// <summary>
    /// HeadingsElements
    /// </summary>
   public static class HeadingsElements
    {
       /// <summary>
        /// (blue)font-family: Arial, Helvetica, sans-serif;
        /// (green)font-family: Georgia, 'Times New Roman', Times, serif;
        /// font-size: 1.5em;
        /// color: #000;
       /// </summary>
        /// <returns>static string</returns>
       public static string h1_h2_h3_h4_h5_h6()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("font-family: Arial, Helvetica, sans-serif;");
           } if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("font-family: Georgia, 'Times New Roman', Times, serif;");
           }
           if (ThemeSetting.theme() == "gray")
           {
               result.AppendLine("font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;");
           }
           result.AppendLine("font-size: 1.5em;");
           result.AppendLine("color: #000;");
           return result.ToString();
       }
       /// <summary>
       /// font-size: 2em;
       /// padding-bottom: 0;
       /// margin-bottom: 0;
       /// </summary>
       /// <returns>static string</returns>
       public static string h1()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("font-size: 2em;");
           result.AppendLine("padding-bottom: 0;");
           result.AppendLine("margin-bottom: 0;");
           return result.ToString();
       }
       /// <summary>
       /// padding: 0;
       /// </summary>
       /// <returns>static string</returns>
       public static string h2()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0;");
           return result.ToString();
       }
       /// <summary>
       /// font-size: 1.2em;
       /// </summary>
       /// <returns>static string</returns>
       public static string h3()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("font-size: 1.2em;");
           return result.ToString();
       }
       /// <summary>
       /// font-size: 1.1em;
       /// </summary>
       /// <returns>static string</returns>
       public static string h4()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("font-size: 1.1em;");
           return result.ToString();
       }
       /// <summary>
       /// font-size: 1em;
       /// </summary>
       /// <returns>static string</returns>
       public static string h5_h6()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("font-size: 1em;");
           return result.ToString();
       }
       /// <summary>
       /// position: relative;
       /// float: right;
       /// </summary>
       /// <returns>static string</returns>
       public static string h2_adminlink()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("position: relative;");
           result.AppendLine("float: right;");
           return result.ToString();
       }
       /// <summary>
       /// color: #fff;
       /// </summary>
       /// <returns>static string</returns>
       public static string h2_white()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color:#333;");
           else
           result.AppendLine("color: #fff;");
           return result.ToString();
       }
    }
}
